package org.springframework.session;

public enum FlushMode {

	/**
	 * Only writes to session store when {@link SessionRepository#save(Session)} is
	 * invoked. In a web environment this is typically done as soon as the HTTP response
	 * is committed.
	 */
	ON_SAVE,

	/**
	 * Writes to session store as soon as possible. For example
	 * {@link SessionRepository#createSession()} will write the session to session store.
	 * Another example is that setting an attribute using
	 * {@link Session#setAttribute(String, Object)} will also write to session store
	 * immediately.
	 */
	IMMEDIATE

}
